import random

i = 10
int = [1,2,3,4,5]
int_1 = [1,2,3,4,5]
list = []

for i in int:
    for j in int_1:
        tup =(i,j)
        list.append(tup)
print(list)

# while i < 10:
#     int.append(random.randint(1,10))
#     i += 1

# print(int[-3::-1])

# while i > 0:
#     i -= 1
#     print(int[:i+1])
#     # print(int[::-1])
#     print(int[i::-1])




# login_data1 = [
# ["13800000001", "123456", "8888", "登录成功"],
# ["13800000001", "1234", "8888", "密码错误"],
# ["13800000001", "123456", "0000", "验证码错误"]
# ]
# # 定义变量：元组
# login_data2 = (
# ("13800000001", "123456", "8888", "登录成功"),
# ("13800000001", "1234", "8888", "密码错误"),
# ("13800000001", "123456", "0000", "验证码错误")
# )
# # 定义变量：列表元组
# login_data3 = [
# ("13800000001", "123456", "8888", "登录成功"),
# ("13800000001", "1234", "8888", "密码错误"),
# ("13800000001", "123456", "0000", "验证码错误")
# ]
# # 定义变量：列表字典
# login_data4 = [
# {"username": "13800000001", "password": "123456", "code": "8888", "result": "登录成功"},
# {"username": "13800000001", "password": "666666", "code": "8888", "result": "密码错误"},
# {"username": "13800000001", "password": "123456", "code": "0000", "result": "验证码错误"}
# ]
# # 遍历数据3
# for j in login_data3:
#     print(f"用户名：{j[0]} 密码：{j[1]} 验证码：{j[2]} 期望结果：{j[3]}")
# # 遍历数据4
# for i in login_data4:
#     print(i)
#     print(i.get("username")) # 13800000001
#     print(f"用户名：{i.get('username')} 密码：{i.get('password')} 验证码：{i.get('code')} 期望结果：{i.get('result')}")
# # 构造测试数据要求掌握3和4